home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / Locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  1.6 KB  |  69 lines  |  [TEXT/MPS ]

  1. /*
  2.     Locale.h - Localization
  3.     
  4.     Copyright Apple Computer, Inc.  1988
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #ifndef __LOCALE__
  10. #define __LOCALE__
  11.  
  12. #ifndef __LIMITS__
  13. #include <Limits.h>              /* For 'CHAR_MAX' definition */
  14. #endif __LIMITS__
  15.  
  16. /* 
  17.  *   Declarations
  18.  */
  19.  
  20. #ifndef NULL
  21. #define NULL 0
  22. #endif NULL
  23.  
  24. #define LC_ALL        1 /* entire locale */
  25. #define LC_COLLATE    2 /* strcoll and strxfrm functions */
  26. #define LC_CTYPE      3 /* character handling and multibyte functions */
  27. #define LC_MONETARY   4 /* monetary formatting information returned by localeconv */
  28. #define LC_NUMERIC    5 /* decimal point formatting input/output and string conversions */
  29. #define LC_TIME       6 /* strftime function */
  30.  
  31. struct lconv {
  32.     char *decimal_point;       /* "." */
  33.     char *thousands_sep;       /* "" */
  34.     char *grouping;            /* "" */
  35.     char *int_curr_symbol;     /* "" */
  36.     char *currency_symbol;     /* "" */
  37.     char *mon_decimal_point;   /* "" */
  38.     char *mon_thousands_sep;   /* "" */
  39.     char *mon_grouping;        /* "" */
  40.     char *positive_sign;       /* "" */
  41.     char *negative_sign;       /* "" */
  42.     char frac_digits;          /* CHAR_MAX */
  43.     char int_frac_digits;      /* CHAR_MAX */
  44.     char p_cs_precedes;        /* CHAR_MAX */
  45.     char p_sep_by_space;       /* CHAR_MAX */
  46.     char n_cs_precedes;        /* CHAR_MAX */
  47.     char n_sep_by_space;       /* CHAR_MAX */
  48.     char p_sign_posn;          /* CHAR_MAX */
  49.     char n_sign_posn;          /* CHAR_MAX */
  50. };
  51.  
  52.  
  53. #ifdef __safe_link
  54. extern "C" {
  55. #endif
  56.  
  57. /*
  58.  *  functions
  59.  */
  60.  
  61. char *setlocale (int category, const char *locale);
  62. struct lconv *localeconv (void);
  63.  
  64. #ifdef __safe_link
  65. }
  66. #endif
  67.  
  68. #endif __LOCALE__
  69.